Package com.cisco.pt.ipc.system.impl
Class AssessmentModelScriptInterfaceImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCObjectImpl
com.cisco.pt.ipc.system.impl.AssessmentModelScriptInterfaceImpl
- All Implemented Interfaces:
IPCObject,AssessmentModelScriptInterface
public class AssessmentModelScriptInterfaceImpl
extends IPCObjectImpl
implements AssessmentModelScriptInterface
Information provided by the PKI file:
\class AssessmentModelScriptInterface
\brief This class handles the Assessment Model Script Interface.
\example appWindow().getActiveFile().getActivityScriptEngine().getAssessmentModelScriptInterface()
- Author:
- Auto-generated
-
Field Summary
Fields inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
accessMessage, ipcFactory, packetTracerSession -
Constructor Summary
ConstructorsConstructorDescriptionAssessmentModelScriptInterfaceImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage) -
Method Summary
Modifier and TypeMethodDescriptiongetAssessmentItemValue(String networkType, String idpath) Information provided by the PKI file:peakAssessmentItemID(String networkType, String idpath) Information provided by the PKI file:booleanInformation provided by the PKI file:booleansetAssessmentItemFeedback(String idpath, String feedback) Information provided by the PKI file:voidsetUseCache(boolean cache) Information provided by the PKI file:Methods inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession, sendMessage, sendMessageWithReturn, translateToCommandStatusStringPairMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.IPCObject
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession
-
Constructor Details
-
AssessmentModelScriptInterfaceImpl
public AssessmentModelScriptInterfaceImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage)
-
-
Method Details
-
getAssessmentItemValue
Information provided by the PKI file:
\brief Returns the value of the assessment item for the specified network at the given node. \param networkType, where the following are valid network types: user, answer, initial, lastAssessed, assessed. \param idpath, the path to the assessment item node. For example, Network:PC0:Default Gateway. \return QString, the value of the assessment item for the specified network.- Specified by:
getAssessmentItemValuein interfaceAssessmentModelScriptInterface- Parameters:
networkType- Takes in a parameter of networkTypeidpath- Takes in a parameter of idpath- Returns:
- String Returns a String
-
peakAssessmentItemID
Information provided by the PKI file:
\brief Returns the list of child assessment node IDs for the specified network at the given node. \param networkType, where the following are valid network types: user, answer, initial, lastAssessed, assessed. \param idpath, the path to the assessment item node. For example, Network:PC0. \return vector<QString>, the list of child assessment node IDs for the specified network at the given node.- Specified by:
peakAssessmentItemIDin interfaceAssessmentModelScriptInterface- Parameters:
networkType- Takes in a parameter of networkTypeidpath- Takes in a parameter of idpath- Returns:
- List<String> Returns a List<String>
-
setAssessmentItemFeedback
Information provided by the PKI file:
\brief Sets the assessment item feedback string. \remark Affects the Check Results display only. It does not change it in the model. The Activity Results page must be displayed. Refreshing the display is required. \return bool, true if the assessment item feedback was set successfully, otherwise false.- Specified by:
setAssessmentItemFeedbackin interfaceAssessmentModelScriptInterface- Parameters:
idpath- Takes in a parameter of idpathfeedback- Takes in a parameter of feedback- Returns:
- boolean Returns a boolean
-
refreshAssessmentItemsView
public boolean refreshAssessmentItemsView()Information provided by the PKI file:
\brief Updates the Assessment Item tree view in the Activity Results page. \remark The Activity Results page must be displayed. Refreshing the display is required. \return bool, true if the Assessment Items view was refreshed successfully, otherwise false.- Specified by:
refreshAssessmentItemsViewin interfaceAssessmentModelScriptInterface- Returns:
- boolean Returns a boolean
-
setUseCache
public void setUseCache(boolean cache) Information provided by the PKI file:
\brief Enables or Disable the TreeNodes to be cached \remark The activity comparator tree is a huge tree in larger networks, and performance may degrade. If you do not require the latest values from the tree, you can enable the cache that will get it from the latest creation of the tree. It is best to enable the cache for a set of calls and disable it after. Disabling the cache will clear the cache. Use it in the order of: 1. enable the cache, 2. get values, 3. disable the cache \param cache, if true the Tree Nodes will be cached, false and they won't.- Specified by:
setUseCachein interfaceAssessmentModelScriptInterface- Parameters:
cache- Takes in a parameter of cache
-